﻿using System;
using System.Globalization;
using System.IO;
using System.Net;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Threading;



[assembly: CLSCompliant( true )]
namespace PandorasBox {
  /// <summary>
  /// Interaction logic for Window1.xaml
  /// </summary>
  public partial class Window1 {
    public Window1() {
      InitializeComponent();
    }

    private void Window_Loaded( object sender, RoutedEventArgs e ) {
      MainWindow.Title += String.Format( CultureInfo.CurrentCulture, " V{0} ({1})",
                                         Assembly.GetExecutingAssembly().GetName().Version,
                                         Properties.Settings.Default.BuildType );
    }

    private void uiZoomSlider_MouseRightButtonDown( object sender, MouseButtonEventArgs e ) {
      this.uiZoomSlider.Value = 1.0;
    }

    private void tcSub_DockPanel_Loaded( object sender, RoutedEventArgs e ) {
      this.tiArt.Header = Properties.Resources.Art;
      this.tiMap.Header = Properties.Resources.Map;
      this.tiProps.Header = Properties.Resources.Properties;
      this.tiCustom.Header = Properties.Resources.Custom;
    }

    private void tcMain_DockPanel_Loaded( object sender, RoutedEventArgs e ) {
      this.tiGeneral.Header = Properties.Resources.General;

      var _container = new DockPanel();

      var _btn1 = new Button {
                               Content = "Testbutton",
                               Height = 24,
                               Width = 100,
                               HorizontalAlignment = HorizontalAlignment.Left
                             };
      _container.Children.Add(_btn1);

      this.tiGeneral.Content = _container;
    }
  }
}